home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * UpdateOptions.js
- *
- * USAGE
- * Part of Netobjects JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 2000-2005 Website Pros, Inc.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Website Pros, Inc.
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Website Pros, Inc.
- *
- * <copyright@websitepros.com>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
- if (!IS.isModuleInitialized("IS.NOF.UPDATE.UpdateOptions"))
- {
-
- /****h* NOF_JavaScript_Library/NOF.UPDATE.UpdateOptions
- *
- * NAME
- * NOF.UPDATE.UpdateOptions
- *
- * DESCRIPTION
- *
- *
- ****/
-
- /**
- * Constructor
- */
- function NOF_UpdateOptions( ) {
- this.__proto__ = NOF_UpdateOptions.prototype;
-
- this.regEditObj = new NOF.NOFSettings();
- }
- {
- var member = NOF_UpdateOptions.prototype;
- //member.PATH_SEPARATOR = "\\";
- member.CHECK_ON_LOAD = 0;
- member.CHECK_ON_CONNECT = 1;
-
- var method = NOF_UpdateOptions.prototype;
- /*
- boolean isSetAutoUpdate()
- setAutoUpdate(boolean on)
-
- int getUpdateFrequency()
- setUpdateFrequency (int frequency)
-
- int getEventToCheckForUpdates()
- setEventToCheckForUpdates(int evtId) //NOF.UPDATE.UpdateOptions.CHECK_ON_LOAD or NOF.UPDATE.UpdateOptions.CHECK_ON_CONNECT
- */
-
- /**
- * Determine if Fusion should automatically check for updates.
- *
- * @return
- **/
- method.isSetAutoUpdate = function () {
- var cu = this.regEditObj.get('Settings\\CheckUpdate', NOF.NOFSettings.INT_VALUE, true);
- return !cu;
- }
-
- /**
- * Set Fusion to check for updates automatically or manual.
- *
- * @param on if true then the autoupdate mode will be used
- **/
- method.setAutoUpdate = function (/*boolean*/ on) {
-
- }
-
-
- /**
- * Get the frequency of checking for updates.
- *
- * @return 0 for Weekly, 1 for Daily, 2 for Monthly
- **/
- method.getUpdateFrequency = function () {
- var uf = this.regEditObj.get('Settings\\UpdateFrequency', NOF.NOFSettings.INT_VALUE, true);
- if (uf == null) {
- uf = 0;
- }
- return uf;
- }
- /**
- * Set the frequency of checking for updates.
- *
- * @param frequency
- **/
- method.setUpdateFrequency = function (/*int*/ frequency) {
-
- }
-
-
- /**
- * Get the event when Fusion should automatically check for updates.
- *
- * @return NOF.UPDATE.UpdateOptions.CHECK_ON_LOAD (CHECK_ON_CONNECT deprecated)
- **/
- method.getEventToCheckForUpdates = function () {
- return NOF.UPDATE.UpdateOptions.CHECK_ON_LOAD;
- }
-
- /**
- * Set the event when Fusion should check for updates (if automatically mode is on).
- *
- * @param evtId - NOF.UPDATE.UpdateOptions.CHECK_ON_LOAD - when Fusion starts or
- * NOF.UPDATE.UpdateOptions.CHECK_ON_CONNECT - when Fusion connects to the Internet
- **/
- method.setEventToCheckForUpdates = function (/*int*/ evtId) {
-
- }
-
- }
-
- NOF.UPDATE.__proto__.UpdateOptions = new NOF_UpdateOptions();
- }